﻿@model IEnumerable<AMS.DD35.Common.Data.CharacterData>

@{
    ViewBag.Title = "Characters";
}

<h2>Characters</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        @*<th>
            UserName
        </th>
        <th>
            CharacterID
        </th>*@
        <th>
            CharacterName
        </th>
        <th>
            BaseStrength
        </th>
        <th>
            BaseDexterity
        </th>
        <th>
            BaseConstitution
        </th>
        <th>
            BaseIntelligence
        </th>
        <th>
            BaseWisdom
        </th>
        <th>
            BaseCharisma
        </th>
        <th>
            Ethical Alignment
        </th>
        <th>
            Moral Alignment
        </th>
        <th>
            Sex
        </th>
        <th>
            RaceID
        </th>
        @*<th>
            DeityID
        </th>
        <th>
            HairColor
        </th>
        <th>
            EyeColor
        </th>
        <th>
            Height
        </th>
        <th>
            HeightUnits
        </th>
        <th>
            Weight
        </th>
        <th>
            WeightUnits
        </th>*@
        <th>
            Experience
        </th>
    @*    <th>
            Copper
        </th>
        <th>
            Silver
        </th>
        <th>
            Gold
        </th>
        <th>
            Platinum
        </th>*@
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        @*<td>
            @Html.DisplayFor(modelItem => item.UserName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CharacterID)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.CharacterName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BaseStrength)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BaseDexterity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BaseConstitution)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BaseIntelligence)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BaseWisdom)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BaseCharisma)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EthicalAlignment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MoralAlignment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Sex)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RaceID)
        </td>
        @*<td>
            @Html.DisplayFor(modelItem => item.DeityID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HairColor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EyeColor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Height)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HeightUnits)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Weight)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.WeightUnits)
        </td>*@
        <td>
            @Html.DisplayFor(modelItem => item.Experience)
        </td>
        @*<td>
            @Html.DisplayFor(modelItem => item.Copper)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Silver)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Gold)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Platinum)
        </td>*@
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.CharacterID })
            | @Html.ActionLink("Details", "Details", new { id=item.CharacterID })
            @*| @Html.ActionLink("Delete", "Delete", new { id=item.CharacterID })*@
        </td>
    </tr>
}

</table>
